package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30);not null"`
	Password string `gorm:"type:varchar(32);not null"`
}
type Product struct {
	gorm.Model
	UserId int     `gorm:"type:int;not null"`
	Img    string  `gorm:"type:varchar(255);not null"`
	Name   string  `gorm:"type:varchar(30);not null"`
	Price  float64 `gorm:"type:decimal(10,2);not null"`
	Num    int     `gorm:"type:int(10);not null"`
}
